package top.iforum.bbs.config;

import top.iforum.common.disruptor.TaskHelper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * All rights Reserved, Designed By www.iforum.top
 *
 * @version V1.0
 * @description: 邮件发送配置
 * @author: 张娜
 * @copyright: 2019 www.iforum.top Inc. All rights reserved.
 */
@Configuration
public class TaskConfig {

    @Bean
    public TaskHelper taskHelper(){
        TaskHelper taskHelper=  new TaskHelper();
        taskHelper.setHandlerCount(3);
        taskHelper.setBufferSize(1024);
        return taskHelper;
    }

}
